<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>发送请求</title>
    <script src="./node_module/axios/dist/mine-axios.js"></script>
</head>

<body>
    <script>
        axios.interceptors.request.use(config => {
            console.log('请求拦截器 成功1 回调')
        }, error => {
            console.log('请求拦截器 失败1 回调')
        })
        axios.interceptors.request.use(config => {
            console.log('请求拦截器 成功2 回调')
        }, error => {
            console.log('请求拦截器 失败2 回调')
        })

        axios.interceptors.response.use(config => {

        }, error => {

        })
    </script>
</body>

</html>